package marpg.core;

public enum Item {
	FRUIT("fruit"),
	WATER("water");
	
	private final String value;
	
	Item(String v) {
        value = v;
    }

    public String value() {
        return value;
    }

    public static Item fromValue(String v) {
        for (Item c: Item.values()) {
            if (c.value.equals(v)) {
                return c;
            }
        }
        throw new IllegalArgumentException(v);
    }
}
